{% load static %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>登录</title>
    <link rel="stylesheet" href="{% static 'css/normalize.css' %}">
    <link rel="stylesheet" href="{% static 'css/login.css' %}">
    <link rel="stylesheet" href="{% static 'css/sign-up-login.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'plugins/jquery/font-awesome-4-6-0.css' %}">
    <link rel="stylesheet" href="{% static 'css/inputEffect.css' %}"/>
    <link rel="stylesheet" href="{% static 'css/verifyCode.css' %}"/>
    <link rel="stylesheet" href="{% static 'css/tooltips.css' %}"/>
    <link rel="stylesheet" href="{% static 'css/spop.min.css' %}"/>
{#    <script src="{% static 'plugins/jquery/jquery-1-10-2.js' %}"></script>#}
    <script src="{% static 'plugins/jquery/jquery.js' %}"></script>
    <script src="{% static 'js/snow.js' %}"></script>
    <script src="{% static 'js/jquery.pure.tooltips.js' %}"></script>
    <script src="{% static 'js/verifyCode.js' %}"></script>
    <script src="{% static 'js/spop.min.js' %}"></script>
    <script src="{% static 'js/loginCheck.js' %}"></script>
    <style type="text/css">
        html {
            width: 100%;
            height: 100%;
        }

        body {
            background-repeat: no-repeat;
            background-position: center center #2D0F0F;
            background-color: #00BDDC;
            background-image: url({% static 'images/snow.jpg' %});
            background-size: 100% 100%;
        }

        .snow-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 100001;
        }

        span.myRed {
            color: red;
            font-size: 12px;
        }
    </style>
</head>
<body>
<div class="snow-container"></div>
<div id="login">
    <input id="tab-1" type="radio" name="tab" class="sign-in hidden" checked/>
    <input id="tab-2" type="radio" name="tab" class="sign-up hidden"/>
    <input id="tab-3" type="radio" name="tab" class="sign-out hidden"/>
    <div class="wrapper">
        <div class="login sign-in-htm">
            <form class="container offset1 loginform" method="post" action="" onsubmit="login()">
                {% csrf_token %}
                <div id="owl-login" class="login-owl">
                    <div class="hand"></div>
                    <div class="hand hand-r"></div>
                    <div class="arms">
                        <div class="arm"></div>
                        <div class="arm arm-r"></div>
                    </div>
                </div>
                <div class="pad input-container">
                    <section class="content">
                        <span class="input input--hideo">
                            <input name="username" class="input__field input__field--hideo" type="text"
                                   id="login-username"
                                   autocomplete="off" placeholder="请输入用户名" tabindex="1" maxlength="15"/>
                            <label class="input__label input__label--hideo" for="login-username">
                                <i class="fa fa-fw fa-user icon icon--hideo"></i>
                                <span class="input__label-content input__label-content--hideo"></span>
                            </label>
                        </span>
                        <span class="input input--hideo">
                            <input class="input__field input__field--hideo" type="password" id="login-password"
                                   placeholder="请输入密码" tabindex="2" name="password" maxlength="15"/>
                            <label class="input__label input__label--hideo" for="login-password">
                                <i class="fa fa-fw fa-lock icon icon--hideo"></i>
                                <span class="input__label-content input__label-content--hideo"></span>
                            </label>
                        </span>
                        <span class="input input--hideo input--verify_code">
                            <input class="input__field input__field--hideo" type="text" id="login-verify-code"
                                   autocomplete="off"
                                   placeholder="请输入验证码" tabindex="3" maxlength="4"/>
                            <label class="input__label input__label--hideo" for="login-verify-code">
                                <i class="fa fa-fw fa-bell-o icon icon--hideo"></i>
                                <span class="input__label-content input__label-content--hideo"></span>
                            </label>
                        </span>
                        <span class="input input--hideo input--verify_code">
                            <span class="myRed">{{ error }}</span>
                        </span>
                        <canvas class="verify-code-canvas" id="login-verify-code-canvas"></canvas>
                    </section>
                </div>
                <div class="form-actions">
                    <input class="btn btn-primary" type="submit" tabindex="3" value="登录"
                           style="color:white;"/>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>